import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    token: "",
    menuList: [],
    num: 0,
    routerList: [],
  },
  getters: {},
  mutations: {
    Set_RouterList(state, data) {
      // console.log(data);
      state.routerList = data;
    },
    setNum(state, data) {
      // console.log(data);
      state.num = data;
    },
  },
  actions: {},
  modules: {},
});
